<!DOCTYPE html>
<html>
<head>
<link href="resources/flexbox.css" rel="stylesheet">
<style>
.flexitem {
    width: 100%;
    height: 3em;
    min-height: 3em;
}
.child {
    background-color: salmon;
}
</style>
<script src="../../resources/check-layout.js"></script>
</head>
<body>
<div id="container" style="width: 100px" data-expected-width="200">
<div class="flexbox column" data-expected-width="200">
    <div class="flexitem" data-expected-width="200">
        <div class="child" data-expected-width="200">This div should be 200px wide.</div>
    </div>
</div>
</div>
<script>
var container = document.getElementById('tree');
container.offsetWidth;
container.style.width = "200px";
window.onload = function()
{
    checkLayout("#container");
};
</script>
</body>
</html>
